import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p013 from './p013';

export default async function a005(fd: IFeidaoAiBrowserComponent) {
	// todo
	const no = fd.data.node.querySelector<HTMLSelectElement>('[data-id="safety_department_no"]');
	const res = await nodejs<{ data: Array<{}> }>('device-management-ygh/zj-000009/s009', { safety_department_no: no.value });
	console.log(res);
	render(fd, res.data[0], p013, 'p013', 'inner');
}
